﻿using System;
using EzDesk.Apps.Interface.ProjectModule;
using EzDesk.Apps.ServiceImpl.ProjectModule;
using EzDesk.Utility.TimerService;
using EzDesk.Utility.Web.ServiceReference;

namespace EzDesk.Clients.DesktopWeb.TimerTask
{
    public class  WorkStatisticsTask:EverydayTimerTask
    {
        private readonly IProjectService _projectService = new ProjectService();
        IProjectService ProjectService
        {
            get { return _projectService; }
        }
        public WorkStatisticsTask()
            : base("WorkStatisticsTask", TimeSpan.FromHours(0))
        {

        }
        protected sealed override void doExecute()
        {
            ProjectService.CheckStatisticsReport();
        }
    }
}